﻿@model ManufacturerModel

<script type="text/javascript">
        $(document).ready(function () {
            $("#@Html.FieldIdFor(model => model.AllowCustomersToSelectPageSize)").click(togglePageSize);
            togglePageSize();
        });

        function togglePageSize() {
            if ($('#@Html.FieldIdFor(model => model.AllowCustomersToSelectPageSize)').is(':checked')) {
                $('#pnlPageSize').hide();
                $('#pnlPageSizeOptions').show();
            } else {
                $('#pnlPageSize').show();
                $('#pnlPageSizeOptions').hide();
            }
        }
</script>
<vc:admin-widget widget-zone="manufacturer_details_info_top" additional-data="Model" />
@(await Html.LocalizedEditor<ManufacturerModel, ManufacturerLocalizedModel>("manufacturer-info-localized",
    @<div class="form-horizontal">
        <div class="form-body">
            <div class="form-group">
                <admin-label asp-for="@Model.Locales[item].Name" />
                <div class="col-md-9 col-sm-9">
                    <admin-input asp-for="@Model.Locales[item].Name" />
                    <span asp-validation-for="@Model.Locales[item].Name"></span>
                </div>
            </div>
            <div class="form-group">
                <admin-label asp-for="@Model.Locales[item].Description" />
                <div class="col-md-9 col-sm-9">
                    <admin-input asp-for="@Model.Locales[item].Description" asp-template="RichEditor" />
                    <span asp-validation-for="@Model.Locales[item].Description"></span>
                </div>
            </div>
            <input asp-for="@Model.Locales[item].LanguageId" type="hidden" />
        </div>
    </div>
    ,
    @<div class="form-horizontal">
        <div class="form-body">
            <div class="form-group">
                <admin-label asp-for="Name" />
                <div class="col-md-9 col-sm-9">
                    <admin-input asp-for="Name" />
                    <span asp-validation-for="Name"></span>
                </div>
            </div>
            <div class="form-group">
                <admin-label asp-for="Description" />
                <div class="col-md-9 col-sm-9">
                    <admin-input asp-for="Description" asp-template="RichEditor" />
                    <span asp-validation-for="Description"></span>
                </div>
            </div>
        </div>
    </div>
    ))
<div class="form-horizontal">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="ManufacturerTemplateId" />
            <div class="col-md-9 col-sm-9">
                <admin-select asp-for="ManufacturerTemplateId" asp-items="Model.AvailableManufacturerTemplates" />
                <span asp-validation-for="ManufacturerTemplateId"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="PictureId" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="PictureId" />
                <span asp-validation-for="PictureId"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="PriceRanges" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="PriceRanges" />
                <span asp-validation-for="PriceRanges"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="ShowOnHomePage" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="ShowOnHomePage" />
                    <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="ShowOnHomePage"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="FeaturedProductsOnHomaPage" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="FeaturedProductsOnHomaPage" />
                    <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="FeaturedProductsOnHomaPage"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="IncludeInTopMenu" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="IncludeInTopMenu" />
                    <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="IncludeInTopMenu"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="AllowCustomersToSelectPageSize" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="AllowCustomersToSelectPageSize" />
                    <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="AllowCustomersToSelectPageSize"></span>
            </div>
        </div>
        <div class="form-group" id="pnlPageSize">
            <admin-label asp-for="PageSize" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="PageSize" />
                <span asp-validation-for="PageSize"></span>
            </div>
        </div>
        <div class="form-group" id="pnlPageSizeOptions">
            <admin-label asp-for="PageSizeOptions" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="PageSizeOptions" />
                <span asp-validation-for="PageSizeOptions"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="DefaultSort" />
            <div class="col-md-9 col-sm-9">
                <admin-select asp-for="DefaultSort" asp-items="Model.AvailableSortOptions" />
                <span asp-validation-for="DefaultSort"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="Icon" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="Icon" />
                <span asp-validation-for="Icon"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="Published" />
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="Published" />
                    <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="Published"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="DisplayOrder" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="DisplayOrder" />
                <span asp-validation-for="DisplayOrder"></span>
            </div>
        </div>
    </div>
</div>
<vc:admin-widget widget-zone="manufacturer_details_info_bottom" additional-data="Model" />